package com.dongqi.deviceData.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备数据-液压
 *
 * @TableName device_hyd_pressure
 */
@TableName("device_hyd_pressure")
public class DeviceHydPressureEntity implements Serializable {
    /**
     * id
     */
    private Long id;

    public void setTimestp(String timestp) {
        this.timestp = timestp;
    }

    /**
     * 设备编号
     */
    private String deviceNo;

    /**
     * 液压编号
     */
    private String hydNo;

    /**
     * 液压型号
     */
    private String hydModel;

    /**
     * 设备状态
     */
    private String status;

    /**
     * 液压缸数
     */
    private String hydCylinderNum;

    /**
     * 缸内压力
     */
    private String cylinderPressure;

    /**
     * 当前压力
     */
    private String currentPressure;

    /**
     * 液压行程
     */
    private String hydraulicStroke;

    /**
     * 工件速度
     */
    private String workpieceSpeed;

    /**
     * 回程速度
     */
    private String returnSpeed;

    /**
     * 输出功率
     */
    private String outputPower;

    /**
     * 运转功率
     */
    private String operatePower;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 备用1
     */
    private String bak1;

    /**
     * 备用2
     */
    private String bak2;

    /**
     * 备用3
     */
    private String bak3;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 时间戳
     */
    private String timestp;

    public String getTimestp() {
        return timestp;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Long getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 设备编号
     */
    public String getDeviceNo() {
        return deviceNo;
    }

    /**
     * 设备编号
     */
    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }

    /**
     * 液压编号
     */
    public String getHydNo() {
        return hydNo;
    }

    /**
     * 液压编号
     */
    public void setHydNo(String hydNo) {
        this.hydNo = hydNo;
    }

    /**
     * 液压型号
     */
    public String getHydModel() {
        return hydModel;
    }

    /**
     * 液压型号
     */
    public void setHydModel(String hydModel) {
        this.hydModel = hydModel;
    }

    /**
     * 设备状态
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设备状态
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 液压缸数
     */
    public String getHydCylinderNum() {
        return hydCylinderNum;
    }

    /**
     * 液压缸数
     */
    public void setHydCylinderNum(String hydCylinderNum) {
        this.hydCylinderNum = hydCylinderNum;
    }

    /**
     * 缸内压力
     */
    public String getCylinderPressure() {
        return cylinderPressure;
    }

    /**
     * 缸内压力
     */
    public void setCylinderPressure(String cylinderPressure) {
        this.cylinderPressure = cylinderPressure;
    }

    /**
     * 当前压力
     */
    public String getCurrentPressure() {
        return currentPressure;
    }

    /**
     * 当前压力
     */
    public void setCurrentPressure(String currentPressure) {
        this.currentPressure = currentPressure;
    }

    /**
     * 液压行程
     */
    public String getHydraulicStroke() {
        return hydraulicStroke;
    }

    /**
     * 液压行程
     */
    public void setHydraulicStroke(String hydraulicStroke) {
        this.hydraulicStroke = hydraulicStroke;
    }

    /**
     * 工件速度
     */
    public String getWorkpieceSpeed() {
        return workpieceSpeed;
    }

    /**
     * 工件速度
     */
    public void setWorkpieceSpeed(String workpieceSpeed) {
        this.workpieceSpeed = workpieceSpeed;
    }

    /**
     * 回程速度
     */
    public String getReturnSpeed() {
        return returnSpeed;
    }

    /**
     * 回程速度
     */
    public void setReturnSpeed(String returnSpeed) {
        this.returnSpeed = returnSpeed;
    }

    /**
     * 输出功率
     */
    public String getOutputPower() {
        return outputPower;
    }

    /**
     * 输出功率
     */
    public void setOutputPower(String outputPower) {
        this.outputPower = outputPower;
    }

    /**
     * 运转功率
     */
    public String getOperatePower() {
        return operatePower;
    }

    /**
     * 运转功率
     */
    public void setOperatePower(String operatePower) {
        this.operatePower = operatePower;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 修改时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 修改时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 备用1
     */
    public String getBak1() {
        return bak1;
    }

    /**
     * 备用1
     */
    public void setBak1(String bak1) {
        this.bak1 = bak1;
    }

    /**
     * 备用2
     */
    public String getBak2() {
        return bak2;
    }

    /**
     * 备用2
     */
    public void setBak2(String bak2) {
        this.bak2 = bak2;
    }

    /**
     * 备用3
     */
    public String getBak3() {
        return bak3;
    }

    /**
     * 备用3
     */
    public void setBak3(String bak3) {
        this.bak3 = bak3;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DeviceHydPressureEntity other = (DeviceHydPressureEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getDeviceNo() == null ? other.getDeviceNo() == null : this.getDeviceNo().equals(other.getDeviceNo()))
                && (this.getHydNo() == null ? other.getHydNo() == null : this.getHydNo().equals(other.getHydNo()))
                && (this.getHydModel() == null ? other.getHydModel() == null : this.getHydModel().equals(other.getHydModel()))
                && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
                && (this.getHydCylinderNum() == null ? other.getHydCylinderNum() == null : this.getHydCylinderNum().equals(other.getHydCylinderNum()))
                && (this.getCylinderPressure() == null ? other.getCylinderPressure() == null : this.getCylinderPressure().equals(other.getCylinderPressure()))
                && (this.getCurrentPressure() == null ? other.getCurrentPressure() == null : this.getCurrentPressure().equals(other.getCurrentPressure()))
                && (this.getHydraulicStroke() == null ? other.getHydraulicStroke() == null : this.getHydraulicStroke().equals(other.getHydraulicStroke()))
                && (this.getWorkpieceSpeed() == null ? other.getWorkpieceSpeed() == null : this.getWorkpieceSpeed().equals(other.getWorkpieceSpeed()))
                && (this.getReturnSpeed() == null ? other.getReturnSpeed() == null : this.getReturnSpeed().equals(other.getReturnSpeed()))
                && (this.getOutputPower() == null ? other.getOutputPower() == null : this.getOutputPower().equals(other.getOutputPower()))
                && (this.getOperatePower() == null ? other.getOperatePower() == null : this.getOperatePower().equals(other.getOperatePower()))
                && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
                && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
                && (this.getBak1() == null ? other.getBak1() == null : this.getBak1().equals(other.getBak1()))
                && (this.getBak2() == null ? other.getBak2() == null : this.getBak2().equals(other.getBak2()))
                && (this.getBak3() == null ? other.getBak3() == null : this.getBak3().equals(other.getBak3()))
                && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
                && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
                && (this.getTimestp() == null ? other.getTimestp() == null : this.getTimestp().equals(other.getTimestp()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDeviceNo() == null) ? 0 : getDeviceNo().hashCode());
        result = prime * result + ((getHydNo() == null) ? 0 : getHydNo().hashCode());
        result = prime * result + ((getHydModel() == null) ? 0 : getHydModel().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getHydCylinderNum() == null) ? 0 : getHydCylinderNum().hashCode());
        result = prime * result + ((getCylinderPressure() == null) ? 0 : getCylinderPressure().hashCode());
        result = prime * result + ((getCurrentPressure() == null) ? 0 : getCurrentPressure().hashCode());
        result = prime * result + ((getHydraulicStroke() == null) ? 0 : getHydraulicStroke().hashCode());
        result = prime * result + ((getWorkpieceSpeed() == null) ? 0 : getWorkpieceSpeed().hashCode());
        result = prime * result + ((getReturnSpeed() == null) ? 0 : getReturnSpeed().hashCode());
        result = prime * result + ((getOutputPower() == null) ? 0 : getOutputPower().hashCode());
        result = prime * result + ((getOperatePower() == null) ? 0 : getOperatePower().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getBak1() == null) ? 0 : getBak1().hashCode());
        result = prime * result + ((getBak2() == null) ? 0 : getBak2().hashCode());
        result = prime * result + ((getBak3() == null) ? 0 : getBak3().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getTimestp() == null) ? 0 : getTimestp().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", deviceNo=").append(deviceNo);
        sb.append(", hydNo=").append(hydNo);
        sb.append(", hydModel=").append(hydModel);
        sb.append(", status=").append(status);
        sb.append(", hydCylinderNum=").append(hydCylinderNum);
        sb.append(", cylinderPressure=").append(cylinderPressure);
        sb.append(", currentPressure=").append(currentPressure);
        sb.append(", hydraulicStroke=").append(hydraulicStroke);
        sb.append(", workpieceSpeed=").append(workpieceSpeed);
        sb.append(", returnSpeed=").append(returnSpeed);
        sb.append(", outputPower=").append(outputPower);
        sb.append(", operatePower=").append(operatePower);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", bak1=").append(bak1);
        sb.append(", bak2=").append(bak2);
        sb.append(", bak3=").append(bak3);
        sb.append(", longitude=").append(longitude);
        sb.append(", latitude=").append(latitude);
        sb.append(", timestp=").append(timestp);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}